﻿using System.Collections;
using System.Collections.Generic;

namespace RealtReview.DataAccess.Entities
{
    public class ApartmentOptions : IEnumerable<string>
    {
        //номер квартиры
        public const string FlatNo = "FlatNo";
        //этаж
        public const string Floor = "Floor";
        //подъед
        public const string Entrance = "Entrance";
        //этажность
        public const string TotalFloors = "TotalFloors";
        //Общая площадь
        public const string TotalArea = "TotalArea";
        //Жилая площадь
        public const string LivingArea = "LivingArea";
        //Площадь кухни
        public const string KitchenArea = "KitchenArea";
        //год постройки
        public const string YearOfConstruction = "YearOfConstruction";

        public IEnumerator<string> GetEnumerator()
        {

            yield return FlatNo;
            yield return Floor;
            yield return Entrance;
            yield return TotalFloors;
            yield return TotalArea;
            yield return LivingArea;
            yield return KitchenArea;
            yield return YearOfConstruction;
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }

    public class ReviewOptions : IEnumerable<string>
    {
        public const string WcType = "WcType";
        public const string NeighborsNature = "NeighborsNature";
        public const string InternetQuality = "InternetQuality";
        public const string RepairQuality = "RepairQuality";
        public const string AvailiableTransportModes = "AvailiableTransportModes";
        public IEnumerator<string> GetEnumerator()
        {
            yield return WcType;
            yield return NeighborsNature;
            yield return InternetQuality;
            yield return RepairQuality;
            yield return AvailiableTransportModes;
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}
